<?php

require_once "../../htdocs/global.php";

class App extends App_Api
{
	protected $userInfo;

	protected function getPara()
	{

	}

	protected function main()
	{
		echo '{"uid":1207985152,"logo":444,"gender":0,"origin":0,"verify_type":0,"domain":"","updateTime":0,"privacy":89794561,"logo50":"http:\/\/jpp.imghb.com\/logo\/7\/98\/51\/1207985152_444_a50x50.jpeg","tinyurl":1207985152,"fullname":"\u674e\u56db","nick":"\u5c0f\u674e","relation":0,"viewname":"\u5c0f\u674e","dispfullname":false}';
		exit;
		
        if ($this->_uid > 0)
        {
            $apiUser = new Api_User($this->_uid);
            $this->userInfo = $apiUser->getInfo($this->_uid);
			
			$userApp = new User_App();
			$userApp->updateUserApp($this->_uid, 1);
        }
        else
        {
            throw new Exception("login required", 10001);
        }
	}

	protected function getResponseData()
	{
		return $this->userInfo;
	}
}

$app = new App("pri");
$app->run();

?>
